<html>﻿<!DOCTYPE html>
<html>
<head>
    <style>

        button {
            margin: 10px;
        }

        div {
            color: blue;
            font-weight: bold;
        }

        span {
            color: red;
        }
    </style>

    <script src="../../../../../../../g.tbcdn.cn/kissy/k/1.3.2/seed.js" tppabs="http://g.tbcdn.cn/kissy/k/1.3.2/seed.js" data-config="{combine:true}"></script>
</head>
<body>
<div class='out' id='i4'>
    <div class='inner' id='i3'>
        <div class='inner' id='i1'>
            <button id='click_button'>click me</button>
        </div>
    </div>
</div>
<div id='log'></div>
<script>
    KISSY.use('core', function (S) {
        var $ = KISSY.Node.all;

        $('#i4').delegate('click', '.inner', function (e) {
            var target = e.target, currentTarget = e.currentTarget;
            $('#log').prepend("<div style='margin:5px;'>invoked : <br/> this.id=" + this.id + "<br/>event.target.id=" +
                    target.id + "<br>event.currentTarget.id=" + currentTarget.id + "</div>");
        });
    });
</script>

</body>
</html>